package model;

import java.util.ArrayList;
import java.util.List;
import java.util.TreeMap;

public class Office extends AbstractModelObject
{
	private String name;
	private List<Patient> patientListing;
	private List<Employee> employeeListing;
	
	public Office(String name)
	{
		patientListing = new ArrayList<Patient>();
		employeeListing = new ArrayList<Employee>();
		this.name = name;
	}

	public String getName() {
		return name;
	}
	
	public List<Patient> getPatientListing() {
		return patientListing;
	}
	
	public List<Employee> getEmployeeListing() {
		return employeeListing;
	}

	public void setEmployees(List<Employee> employees) 
	{
		List<Employee> oldValue = this.employeeListing;
		this.employeeListing = 	new ArrayList<Employee>(employees);
		this.firePropertyChange("employees", oldValue, this.employeeListing);
	}

	public void setName(String name) 
	{
		this.name = name;
	}
}
